/*
 * Flowable REST API
 * # flowable / flowəb(ə)l /    - a compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.  - a lightning fast, tried and tested BPMN 2 process engine written in Java. It is Apache 2.0 licensed open source, with a committed community.  - can run embedded in a Java application, or as a service on a server, a cluster, and in the cloud. It integrates perfectly with Spring. With a rich Java and REST API, it is the ideal engine for orchestrating human or system activities.
 *
 * OpenAPI spec version: v1
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.ibm.risk.irmp.workflow.client.flowable.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;

/**
 * BatchPartResponse
 */

public class BatchPartResponse {
  @JsonProperty("id")
  private String id = null;

  @JsonProperty("url")
  private String url = null;

  @JsonProperty("batchId")
  private String batchId = null;

  @JsonProperty("batchUrl")
  private String batchUrl = null;

  @JsonProperty("batchType")
  private String batchType = null;

  @JsonProperty("searchKey")
  private String searchKey = null;

  @JsonProperty("searchKey2")
  private String searchKey2 = null;

  @JsonProperty("scopeId")
  private String scopeId = null;

  @JsonProperty("subScopeId")
  private String subScopeId = null;

  @JsonProperty("scopeType")
  private String scopeType = null;

  @JsonProperty("createTime")
  private OffsetDateTime createTime = null;

  @JsonProperty("completeTime")
  private OffsetDateTime completeTime = null;

  @JsonProperty("status")
  private String status = null;

  @JsonProperty("tenantId")
  private String tenantId = null;

  public BatchPartResponse id(String id) {
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(example = "8", value = "")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public BatchPartResponse url(String url) {
    this.url = url;
    return this;
  }

   /**
   * Get url
   * @return url
  **/
  @ApiModelProperty(example = "http://localhost:8182/management/batch-parts/8", value = "")
  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public BatchPartResponse batchId(String batchId) {
    this.batchId = batchId;
    return this;
  }

   /**
   * Get batchId
   * @return batchId
  **/
  @ApiModelProperty(example = "4", value = "")
  public String getBatchId() {
    return batchId;
  }

  public void setBatchId(String batchId) {
    this.batchId = batchId;
  }

  public BatchPartResponse batchUrl(String batchUrl) {
    this.batchUrl = batchUrl;
    return this;
  }

   /**
   * Get batchUrl
   * @return batchUrl
  **/
  @ApiModelProperty(example = "http://localhost:8182/management/batch/4", value = "")
  public String getBatchUrl() {
    return batchUrl;
  }

  public void setBatchUrl(String batchUrl) {
    this.batchUrl = batchUrl;
  }

  public BatchPartResponse batchType(String batchType) {
    this.batchType = batchType;
    return this;
  }

   /**
   * Get batchType
   * @return batchType
  **/
  @ApiModelProperty(example = "processMigration", value = "")
  public String getBatchType() {
    return batchType;
  }

  public void setBatchType(String batchType) {
    this.batchType = batchType;
  }

  public BatchPartResponse searchKey(String searchKey) {
    this.searchKey = searchKey;
    return this;
  }

   /**
   * Get searchKey
   * @return searchKey
  **/
  @ApiModelProperty(example = "1:22:MP", value = "")
  public String getSearchKey() {
    return searchKey;
  }

  public void setSearchKey(String searchKey) {
    this.searchKey = searchKey;
  }

  public BatchPartResponse searchKey2(String searchKey2) {
    this.searchKey2 = searchKey2;
    return this;
  }

   /**
   * Get searchKey2
   * @return searchKey2
  **/
  @ApiModelProperty(example = "1:24:MP", value = "")
  public String getSearchKey2() {
    return searchKey2;
  }

  public void setSearchKey2(String searchKey2) {
    this.searchKey2 = searchKey2;
  }

  public BatchPartResponse scopeId(String scopeId) {
    this.scopeId = scopeId;
    return this;
  }

   /**
   * Get scopeId
   * @return scopeId
  **/
  @ApiModelProperty(example = "1", value = "")
  public String getScopeId() {
    return scopeId;
  }

  public void setScopeId(String scopeId) {
    this.scopeId = scopeId;
  }

  public BatchPartResponse subScopeId(String subScopeId) {
    this.subScopeId = subScopeId;
    return this;
  }

   /**
   * Get subScopeId
   * @return subScopeId
  **/
  @ApiModelProperty(example = "2", value = "")
  public String getSubScopeId() {
    return subScopeId;
  }

  public void setSubScopeId(String subScopeId) {
    this.subScopeId = subScopeId;
  }

  public BatchPartResponse scopeType(String scopeType) {
    this.scopeType = scopeType;
    return this;
  }

   /**
   * Get scopeType
   * @return scopeType
  **/
  @ApiModelProperty(example = "bpmn", value = "")
  public String getScopeType() {
    return scopeType;
  }

  public void setScopeType(String scopeType) {
    this.scopeType = scopeType;
  }

  public BatchPartResponse createTime(OffsetDateTime createTime) {
    this.createTime = createTime;
    return this;
  }

   /**
   * Get createTime
   * @return createTime
  **/
  @ApiModelProperty(example = "2020-06-03T22:05:05.474+0000", value = "")
  public OffsetDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(OffsetDateTime createTime) {
    this.createTime = createTime;
  }

  public BatchPartResponse completeTime(OffsetDateTime completeTime) {
    this.completeTime = completeTime;
    return this;
  }

   /**
   * Get completeTime
   * @return completeTime
  **/
  @ApiModelProperty(example = "2020-06-03T22:05:05.474+0000", value = "")
  public OffsetDateTime getCompleteTime() {
    return completeTime;
  }

  public void setCompleteTime(OffsetDateTime completeTime) {
    this.completeTime = completeTime;
  }

  public BatchPartResponse status(String status) {
    this.status = status;
    return this;
  }

   /**
   * Get status
   * @return status
  **/
  @ApiModelProperty(example = "completed", value = "")
  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public BatchPartResponse tenantId(String tenantId) {
    this.tenantId = tenantId;
    return this;
  }

   /**
   * Get tenantId
   * @return tenantId
  **/
  @ApiModelProperty(value = "")
  public String getTenantId() {
    return tenantId;
  }

  public void setTenantId(String tenantId) {
    this.tenantId = tenantId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BatchPartResponse batchPartResponse = (BatchPartResponse) o;
    return Objects.equals(this.id, batchPartResponse.id) &&
        Objects.equals(this.url, batchPartResponse.url) &&
        Objects.equals(this.batchId, batchPartResponse.batchId) &&
        Objects.equals(this.batchUrl, batchPartResponse.batchUrl) &&
        Objects.equals(this.batchType, batchPartResponse.batchType) &&
        Objects.equals(this.searchKey, batchPartResponse.searchKey) &&
        Objects.equals(this.searchKey2, batchPartResponse.searchKey2) &&
        Objects.equals(this.scopeId, batchPartResponse.scopeId) &&
        Objects.equals(this.subScopeId, batchPartResponse.subScopeId) &&
        Objects.equals(this.scopeType, batchPartResponse.scopeType) &&
        Objects.equals(this.createTime, batchPartResponse.createTime) &&
        Objects.equals(this.completeTime, batchPartResponse.completeTime) &&
        Objects.equals(this.status, batchPartResponse.status) &&
        Objects.equals(this.tenantId, batchPartResponse.tenantId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, url, batchId, batchUrl, batchType, searchKey, searchKey2, scopeId, subScopeId, scopeType, createTime, completeTime, status, tenantId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BatchPartResponse {\n");

    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    url: ").append(toIndentedString(url)).append("\n");
    sb.append("    batchId: ").append(toIndentedString(batchId)).append("\n");
    sb.append("    batchUrl: ").append(toIndentedString(batchUrl)).append("\n");
    sb.append("    batchType: ").append(toIndentedString(batchType)).append("\n");
    sb.append("    searchKey: ").append(toIndentedString(searchKey)).append("\n");
    sb.append("    searchKey2: ").append(toIndentedString(searchKey2)).append("\n");
    sb.append("    scopeId: ").append(toIndentedString(scopeId)).append("\n");
    sb.append("    subScopeId: ").append(toIndentedString(subScopeId)).append("\n");
    sb.append("    scopeType: ").append(toIndentedString(scopeType)).append("\n");
    sb.append("    createTime: ").append(toIndentedString(createTime)).append("\n");
    sb.append("    completeTime: ").append(toIndentedString(completeTime)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    tenantId: ").append(toIndentedString(tenantId)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
